package com.ado.bazinga.core.assemble;

import org.springframework.stereotype.Component;

import com.ado.bazinga.core.common.params.dto.RoleDto;
import com.ado.bazinga.core.dal.entity.Role;

/**
 *@author adonais
 *@date 2020年4月7日
 *@description RoleAssemble.java 角色参数组装
 **/
@Component(value = "roleAssemble")
public class RoleAssemble {
	
	/**
	 * dto转实体类方法
	 * @param role
	 * @param roleDto
	 * @return
	 */
	public Role assembleDtoToEnt(Role role , RoleDto roleDto) {
		role.setOperationId(roleDto.getOperationId());
		role.setRoleName(roleDto.getRoleName());
		return role ;
	}

	
	
}
